package com.lxl.sever1.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: luoxianliang
 * @Email: 1322342586@qq.com
 * @CreateTime: 2025-08-15
 * @Description: 测试改变配置文件
 * @Version: 1.0
 * @OtherInfo:
 */
@RestController
@RefreshScope
public class ChangeValue {

    @Value("${default.value}")
    private String  x;
    @GetMapping("/changeValue")
    public String changeValue(){
        System.out.println(x);
        return x;
    }
}
